package com.ns.scs.rsr.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 热门资源请求实体
 *
 * @author : liaowei
 * @version : v1.0.0
 * @since : 2024-08-31 11:54:35
 **/
@Data
@ToString
@Accessors(chain = true)
public class RsrHotVO implements Serializable {

    @Serial
    private static final Long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 资源id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long resourceId;
    /**
     * 资源id
     */
    private String resourceName;

    /**
     * 资源logo
     */
    private String img;

    /**
     * 创建人
     */
    private Long uid;

    /**
     * 创建人
     */
    private String uName;

    /**
     * 序号
     */
    private Long sort;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

}
